﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminViews/Admin.Master" AutoEventWireup="true" CodeBehind="Update.aspx.cs" Inherits="BestBuy.AdminViews.Update" %>

<%@ Register TagPrefix="uc" TagName="MessagePanel" Src="~/UserControls/MessagePanel.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="wrapper-content">
    <div class="form-horizontal">
       <fieldset>
            <legend> Thông tin quy định   </legend>
              <uc:messagepanel ID="AdminInfoMessage" runat="server" />
             <asp:ValidationSummary ID="UpdateRegulationstInfoValidationSummary" runat="server" CssClass="alert alert-danger" 
             ValidationGroup="UpdateRegulationstValidationGroup" />
             <div class= "control-group">
                    <asp:Label runat="server" ID="NameLabel" AssociatedControlID="cbName" CssClass="control-label"
                    Text="Name" />
                    <div class="controls">
                    <asp:DropDownList ID="cbName" runat="server" DataTextField="Name" DataValueField="ID"
                            onselectedindexchanged="cbName_SelectedIndexChanged" AutoPostBack="True"/>
                    </div>
              </div>
               <div class= "control-group">
                   <asp:Label runat="server" ID="Detail" AssociatedControlID="Detail" CssClass="control-label"
                    Text="Detail: " />
                     <div class="controls">
                         <asp:TextBox ID="txtDetail" runat="server" Enabled="False"></asp:TextBox>
                   
                     </div>
                </div>

                 <legend>Detail new    </legend>
                
                 <div class= "control-group">
                    <asp:Label runat="server" ID="DetailNew" AssociatedControlID="DetailNew" CssClass="control-label"
                    Text="Detail new :" />
                     <div class="controls">
                         <asp:TextBox ID="txtDetailNew" runat="server"></asp:TextBox>
                     </div>
                </div>


                 <div class="control-group">
                    <div class="controls">
                        <asp:Button ID="UpdateRegulationInfoButton" runat="server" ValidationGroup = "UpdateRegulationstValidationGroup"
                        OnClientClick="hideMessagePanel()"
                            CssClass="btn btn-primary" Text="Update" OnClick= "UpdateRegulationInfoButton_Click"/>
                    </div>
                </div>
      </fieldset>
      </div>
      </div>
</asp:Content>
